// 转换选项接口
export interface ConvertOptions {
  encoding: string;
  delimiter: string;
  sheetName: string;
  hasHeader: boolean;
}

// 文件信息接口
export interface FileInfo {
  name: string;
  path: string;
  size: number;
  lastModified: Date;
}

// 转换结果接口
export interface ConvertResult {
  success: boolean;
  data?: any;
  error?: string;
  outputPath?: string;
}

// 主题配置接口
export interface ThemeConfig {
  name: string;
  colors: {
    primary: string;
    secondary: string;
    background: string;
    surface: string;
    text: string;
    textSecondary: string;
    border: string;
    success: string;
    warning: string;
    error: string;
  };
}

// 应用配置接口
export interface AppConfig {
  theme: string;
  recentFiles: string[];
  defaultOptions: ConvertOptions;
}

// 转换器接口 - 为扩展性设计
export interface Converter {
  name: string;
  supportedFormats: string[];
  convert: (input: any, options: any) => Promise<any>;
  validate?: (input: any) => boolean;
}